#!/usr/bin/env python
# coding=utf-8

"""
@author: yaqiwe
@contact: 15338230927@163.com
@file: GetIPTest.py
@date: 2020/10/29 12:59
@desc: 测试 GetIP
"""

from util.ProxyAccess import ProxyAccess
from util.LogginUtil import logging
class GetIPTest:

    def getIPListTest(self):
        g = ProxyAccess()
        ipList = g.getIPList(1)
        logging.info('ip列表：{}'.format(ipList))
        logging.info('ip数量：{}'.format(len(ipList)))

    def getPayIPTest(self):
        g = ProxyAccess()
        ipList = g.getPayIP(1)
        logging.info('ip列表：{}'.format(ipList))
        logging.info('ip数量：{}'.format(len(ipList)))


if __name__ == '__main__':
    # GetIPTest().getIPListTest()
    GetIPTest().getPayIPTest()